﻿using FDSimpleModelGenerator.Common;
using FDSimpleModelGenerator.Common.Enums;
using FDSimpleModelGenerator.IServices;

namespace FDSimpleModelGenerator.Services.Mappers
{
    /// <summary>
    /// C#语言类型转化服务
    /// </summary>
    public class CSharpDataTypeMapperService : IDataTypeMapperService
    {
        public LanguageDataType LanguageDataType => LanguageDataType.CSharp;

        public string Map(string dbType, bool isUnsigned = false)
        {
            return DbTypeMapper.Map(dbType, isUnsigned);
        }
    }
}
